package com.invengo.module_check.ui.fragment.widget.item;

import androidx.annotation.NonNull;

import com.invengo.library_db.entity.module_check.ShelfBean;
import com.invengo.module_check.ui.fragment.widget.SelectShelfViewModel;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.bus.event.SingleLiveEvent;

public class ShelfItemViewModel extends ItemViewModel<SelectShelfViewModel> {
    public SingleLiveEvent<ShelfBean> bean =new SingleLiveEvent<>();
    public ShelfItemViewModel(@NonNull SelectShelfViewModel viewModel, ShelfBean bean) {
        super(viewModel);
        this.bean.postValue(bean);
    }
    public BindingCommand onShelfClick =new BindingCommand(()->{
       viewModel.shelfItemClick(this);
    });
}
